package com.sl.au.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sl.au.entity.Root;

@Entity
@Table(name = "sl_dcms_grading")
public class Grading extends Root{

	@Column(nullable = true)
	private String gradingName;//名称
	
	@Column(nullable = true)
	private String gradingIdentify;//编码
	
	@Column(nullable = true)
	private int gradingOrder;//顺序

	@Column(nullable = true)
	private String gradingParent;//父级
	
	@Column(nullable = true)
	private String gradingBewrite;//描述
	
	@Column(nullable = true)
	private float gradingScale;//分数
	
	/*******  用于判断是否需要当前编码  ******/
	// 人员
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean userShow = true;
	// 部件
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean partShow = true;
	// 网格
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean gridShow = true;
	// 事件
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean eventShow = true;
	
	@ManyToOne
	@JoinColumn(name = "gradingLevel_id",nullable = true)
	private Option gradingLevel;//组织层级

	public String getGradingName() {
		return gradingName;
	}

	public void setGradingName(String gradingName) {
		this.gradingName = gradingName;
	}

	public String getGradingIdentify() {
		return gradingIdentify;
	}

	public void setGradingIdentify(String gradingIdentify) {
		this.gradingIdentify = gradingIdentify;
	}

	public int getGradingOrder() {
		return gradingOrder;
	}

	public void setGradingOrder(int gradingOrder) {
		this.gradingOrder = gradingOrder;
	}

	public String getGradingParent() {
		return gradingParent;
	}

	public void setGradingParent(String gradingParent) {
		this.gradingParent = gradingParent;
	}
	
	public String getGradingBewrite() {
		return gradingBewrite;
	}

	public void setGradingBewrite(String gradingBewrite) {
		this.gradingBewrite = gradingBewrite;
	}

	public Option getGradingLevel() {
		return gradingLevel;
	}

	public void setGradingLevel(Option gradingLevel) {
		this.gradingLevel = gradingLevel;
	}

	public float getGradingScale() {
		return gradingScale;
	}

	public void setGradingScale(float gradingScale) {
		this.gradingScale = gradingScale;
	}

	public boolean isUserShow() {
		return userShow;
	}

	public void setUserShow(boolean userShow) {
		this.userShow = userShow;
	}

	public boolean isPartShow() {
		return partShow;
	}

	public void setPartShow(boolean partShow) {
		this.partShow = partShow;
	}

	public boolean isGridShow() {
		return gridShow;
	}

	public void setGridShow(boolean gridShow) {
		this.gridShow = gridShow;
	}

	public boolean isEventShow() {
		return eventShow;
	}

	public void setEventShow(boolean eventShow) {
		this.eventShow = eventShow;
	}
	
}
